import Vue from 'vue'
import App from './App.vue'
import router from './router'
//引入vant组件
import Vant from 'vant';
import 'vant/lib/index.css';
//引入request
import request from "./util/request";
//懒加载
import VueLazyLoad from 'vue-lazyload'
//引入store
import store from './store'
//引入axios
import axios from "axios";


Vue.config.productionTip = false
Vue.use(Vant);
//给Vue原型上加上request
Vue.prototype.request = request
Vue.prototype.$http = axios
//使用懒加载
Vue.use(VueLazyLoad)



new Vue({
  router,
  store,
  render: h => h(App),
  //安装全局事件总线
  beforeCreate() {
    Vue.prototype.$bus = this
  },
}).$mount('#app')
